﻿using System;
using System.Collections;
using System.Text;
using System.Net.Mail;
using System.Net;

namespace BLL
{
    public class SendMail
    {

      public  void sendMail(string password, string email)
        {
            MailMessage myMail = new MailMessage();
            myMail.From = new MailAddress("faguan716@tom.com");
            myMail.To.Add(new MailAddress(email));
            myMail.Subject = "Lost Password";
            myMail.Body = "Hi, my dear friend, your lost pass word is  " + password + " !  O(∩_∩)O~";
           
          SmtpClient m_smtpClient = new SmtpClient("smtp.tom.com");
          m_smtpClient.Credentials = new NetworkCredential("faguan716", "1448950391");

            m_smtpClient.Send(myMail);



        }
    }
}
